//
//  SureViewCell.m
//  myapp
//
//  Created by 安建伟 on 2019/7/31.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import "SureViewCell.h"

@implementation SureViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        if (!_sureLabel) {
            _sureLabel = [[UILabel alloc] init];
            _sureLabel.textColor = [UIColor lightGrayColor];
            _sureLabel.font = [UIFont systemFontOfSize:17.0];
            _sureLabel.textAlignment = NSTextAlignmentCenter;
            _sureLabel.adjustsFontSizeToFitWidth = YES;
            _sureLabel.text = LocalString(@"确定");
            [self.contentView addSubview:_sureLabel];
            
            [_sureLabel mas_makeConstraints:^(MASConstraintMaker *make) {
                make.size.mas_equalTo(CGSizeMake(150.f, 23));
                make.centerX.equalTo(self.contentView.mas_centerX);
                make.centerY.equalTo(self.contentView.mas_centerY);
            }];
        }
    }
    return self;
}

@end
